package com.yupi.yuapicommon.service;


import com.yupi.yuapicommon.model.entity.User;

public interface InnerUserService {

    /**
     * 数据库中查询是否分配AK/SK给用户
     * @param accessKey
     * @return
     */
    User getInvokeUser(String accessKey);

    /**
     * 消耗羊毛
     * @param woolUsed
     */
    boolean consumeWool(long woolUsed, long woolLeft, long userId);
}
